package com.yx.cloud.product.gyro;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2019/1/23.
 */

public class AlarmUtils {
    public static List<Integer> loopsToPeriod(String loops){
        List<Integer> period = new ArrayList<>();
        for(int i = 0;i < 7;i++){
            if(loops.charAt(i) == '1'){
                period.add(i);
            }
        }
        return period;
    }
}
